var app = getApp();

Page({
    data: {},
    onLoad: function(t) {
        var n = this;
        wx.hideShareMenu(), app.util.request({
            url: "entry/wxapp/getcity",
            cachetime: "0",
            success: function(t) {
                console.log(t), n.setData({
                    city: t.data
                });
            }
        });
    },
    city: function(t) {
        console.log(t);
        var n = this.data.city, e = t.currentTarget.dataset.index;
        wx.setStorageSync("city", n[e].cityname);
        var a = getCurrentPages(), o = (a[a.length - 1], a[a.length - 2]);
        o.berak(), o.advert(), wx.navigateBack({
            delta: 1
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {}
});